package com.rfsp.mcp.init;

import com.rfsp.common.pojo.vo.DictVO;

import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2022/11/17.
 */
public class McpDict {

    public static List<DictVO> areaTypeDict				=new ArrayList<>();
    public static List<DictVO> repayTypeDict			=new ArrayList<>();
    public static List<DictVO> businessTypeDict			=new ArrayList<>();
    public static List<DictVO> productStatusDict		=new ArrayList<>();
    public static List<DictVO> businessStatusDict		=new ArrayList<>();
    public static List<DictVO> financeStatusDict		=new ArrayList<>();
    public static List<DictVO> financeViewStatusDict	=new ArrayList<>();
    public static List<DictVO> revokeVerifyStatusDict	=new ArrayList<>();
    public static List<DictVO> authorizeStatusDict		=new ArrayList<>();
    public static List<DictVO> preferntialTypeDict		=new ArrayList<>();
    public static List<DictVO> validityListDict			=new ArrayList<>();
    public static List<DictVO> shareOrgTypeListDict		=new ArrayList<>();
    public static List<DictVO> isActivationDict			=new ArrayList<>();
    public static List<DictVO> verifyFlagDict			=new ArrayList<>();
    public static List<DictVO> yearFlagDict				=new ArrayList<>();
    public static List<DictVO> orgTypeDict				=new ArrayList<>();
    public static List<DictVO> validFlagDict 			= new ArrayList<>();
    public static List<DictVO> ybjOrgTypeDict 			= new ArrayList<>();
    public static List<DictVO> ybjOrgClassDict 			= new ArrayList<>();
    public static List<DictVO> ybjBizAreaDict 			= new ArrayList<>();


	public static Map<String, String> areaTypeMap			=new LinkedHashMap<>();
	public static Map<String, String> repayTypeMap			= new LinkedHashMap<>();
	public static Map<String, String> businessTypeMap		= new LinkedHashMap<>();
	public static Map<String, String> productStatusMap		= new LinkedHashMap<>();
	public static Map<String, String> businessStatusMap		= new LinkedHashMap<>();
	public static Map<String, String> financeStatusMap		= new LinkedHashMap<>();
	public static Map<String, String> financeViewStatusMap	= new LinkedHashMap<>();
	public static Map<String, String> revokeVerifyStatusMap	= new LinkedHashMap<>();
	public static Map<String, String> authorizeStatusMap	= new LinkedHashMap<>();
	public static Map<String, String> preferntialTypeMap	= new LinkedHashMap<>();
	public static Map<String, String> validityListMap		= new LinkedHashMap<>();
	public static Map<String, String> shareOrgTypeListMap	= new LinkedHashMap<>();
	public static Map<String, String> isActivationMap		= new LinkedHashMap<>();
	public static Map<String, String> verifyFlagMap			= new LinkedHashMap<>();
	public static Map<String, String> yearFlagMap			= new LinkedHashMap<>();
	public static Map<String, String> orgTypeMap			= new LinkedHashMap<>();
	public static Map<String, String> validFlagMap			= new LinkedHashMap<>();
	public static Map<String, String> ybjOrgTypeMap			= new LinkedHashMap<>();
	public static Map<String, String> ybjOrgClassMap		= new LinkedHashMap<>();
	public static Map<String, String> ybjBizAreaMap			= new LinkedHashMap<>();


	static {
		areaTypeDict.add(new DictVO("1","全国"));
		areaTypeDict.add(new DictVO("2","其他"));
		areaTypeDict.forEach(e->areaTypeMap.put(e.getCode(),e.getText()));

		repayTypeDict.add(new DictVO("0","分期还款"));
		repayTypeDict.add(new DictVO("1","到期还款"));
		repayTypeDict.add(new DictVO("2","随借随还"));
		repayTypeDict.forEach(e->repayTypeMap.put(e.getCode(),e.getText()));

		businessTypeDict.add(new DictVO("0","保理（单笔融资）"));
		businessTypeDict.add(new DictVO("1","保理（池化融资）"));
		businessTypeDict.add(new DictVO("2","债权质押"));
		businessTypeDict.add(new DictVO("3","信用贷"));
		businessTypeDict.add(new DictVO("4","其他"));
		businessTypeDict.forEach(e->businessTypeMap.put(e.getCode(),e.getText()));


		productStatusDict.add(new DictVO("1","未发布"));
		productStatusDict.add(new DictVO("2","已发布"));
		productStatusDict.add(new DictVO("3","已停用"));
		productStatusDict.forEach(e->productStatusMap.put(e.getCode(),e.getText()));


		isActivationDict.add(new DictVO("0","未开通"));
		isActivationDict.add(new DictVO("1","已开通"));
		isActivationDict.forEach(e->isActivationMap.put(e.getCode(),e.getText()));


		orgTypeDict.add(new DictVO("0101","全国性银行"));
		orgTypeDict.add(new DictVO("0102","城市商业银行"));
		orgTypeDict.add(new DictVO("0103","外资银行"));
		orgTypeDict.add(new DictVO("0104","合作金融机构"));
		orgTypeDict.add(new DictVO("0105","财务公司"));
		orgTypeDict.add(new DictVO("0106","贷款公司"));
		orgTypeDict.add(new DictVO("0107","金融租赁公司"));
		orgTypeDict.add(new DictVO("0108","信托公司"));
		orgTypeDict.add(new DictVO("0109","保险公司"));
		orgTypeDict.add(new DictVO("0110","证券公司"));
		orgTypeDict.add(new DictVO("0111","村镇银行"));
		orgTypeDict.add(new DictVO("0112","其他金融机构"));
		orgTypeDict.add(new DictVO("0201","担保公司"));
		orgTypeDict.add(new DictVO("0202","典当公司"));
		orgTypeDict.add(new DictVO("0203","租赁公司"));
		orgTypeDict.add(new DictVO("0204","保理公司"));
		orgTypeDict.add(new DictVO("0205","普通企业"));
		orgTypeDict.add(new DictVO("03","事业单位"));
		orgTypeDict.add(new DictVO("06","农业合作社"));
		orgTypeDict.add(new DictVO("09","其他"));
		orgTypeDict.forEach(e->orgTypeMap.put(e.getCode(),e.getText()));


		businessStatusDict.add(new DictVO("0","已申请"));
		businessStatusDict.add(new DictVO("1","已成交"));
		businessStatusDict.forEach(e->businessStatusMap.put(e.getCode(),e.getText()));

		financeStatusDict.add(new DictVO("1","已申请"));
		financeStatusDict.add(new DictVO("2","已成交"));
		financeStatusDict.add(new DictVO("3","已终止"));
		financeStatusDict.forEach(e->financeStatusMap.put(e.getCode(),e.getText()));

		financeViewStatusDict.add(new DictVO("1","未查看"));
		financeViewStatusDict.add(new DictVO("2","已查看"));
		financeViewStatusDict.forEach(e->financeViewStatusMap.put(e.getCode(),e.getText()));

		revokeVerifyStatusDict.add(new DictVO("1","待审批"));
		revokeVerifyStatusDict.add(new DictVO("2","已同意"));
		revokeVerifyStatusDict.add(new DictVO("3","已拒绝"));
		revokeVerifyStatusDict.forEach(e->revokeVerifyStatusMap.put(e.getCode(),e.getText()));

		authorizeStatusDict.add(new DictVO("1","有效"));
		authorizeStatusDict.add(new DictVO("2","无效"));
		authorizeStatusDict.forEach(e->authorizeStatusMap.put(e.getCode(),e.getText()));

		preferntialTypeDict.add(new DictVO("1","是"));
		preferntialTypeDict.add(new DictVO("2","否"));
		preferntialTypeDict.forEach(e->preferntialTypeMap.put(e.getCode(),e.getText()));

		validityListDict.add(new DictVO("1","有效成交"));
		validityListDict.add(new DictVO("2","无效成交"));
		validityListDict.forEach(e->validityListMap.put(e.getCode(),e.getText()));

		shareOrgTypeListDict.add(new DictVO("1","医保局"));
		shareOrgTypeListDict.add(new DictVO("2","卫健委"));
		shareOrgTypeListDict.forEach(e->shareOrgTypeListMap.put(e.getCode(),e.getText()));

//		verifyFlagDict.add(new DictVO("0","未审核"));
		verifyFlagDict.add(new DictVO("1","启用"));
		verifyFlagDict.add(new DictVO("2","停用"));
//		verifyFlagDict.add(new DictVO("3","审核不通过"));
		verifyFlagDict.add(new DictVO("4","注销"));
//		verifyFlagDict.add(new DictVO("5","审核中"));
		verifyFlagDict.forEach(e->verifyFlagMap.put(e.getCode(),e.getText()));

		yearFlagDict.add(new DictVO("00","未年审"));
//		yearFlagDict.add(new DictVO("10","年审未通过"));
		yearFlagDict.add(new DictVO("11","年审未通过"));
//		yearFlagDict.add(new DictVO("20","年审已通过"));
		yearFlagDict.add(new DictVO("21","年审已通过"));
		yearFlagDict.forEach(e->yearFlagMap.put(e.getCode(),e.getText()));

		validFlagDict.add(new DictVO("0","无效"));
		validFlagDict.add(new DictVO("1","有效"));
		validFlagDict.forEach(e->validFlagMap.put(e.getCode(),e.getText()));

		ybjOrgTypeDict.add(new DictVO("1","定点医疗机构"));
		ybjOrgTypeDict.add(new DictVO("2","定点零售药店"));
		ybjOrgTypeDict.forEach(e->ybjOrgTypeMap.put(e.getCode(),e.getText()));

		ybjOrgClassDict.add(new DictVO("01","三级特等"));
		ybjOrgClassDict.add(new DictVO("02","三级甲等"));
		ybjOrgClassDict.add(new DictVO("03","三级乙等"));
		ybjOrgClassDict.add(new DictVO("04","三级丙等"));
		ybjOrgClassDict.add(new DictVO("05","二级甲等"));
		ybjOrgClassDict.add(new DictVO("06","二级乙等"));
		ybjOrgClassDict.add(new DictVO("07","二级丙等"));
		ybjOrgClassDict.add(new DictVO("08","一级甲等"));
		ybjOrgClassDict.add(new DictVO("09","一级乙等"));
		ybjOrgClassDict.add(new DictVO("10","一级丙等"));
		ybjOrgClassDict.add(new DictVO("11","无等级"));
		ybjOrgClassDict.add(new DictVO("12","三级无等"));
		ybjOrgClassDict.add(new DictVO("13","二级无等"));
		ybjOrgClassDict.add(new DictVO("14","一级无等"));
		ybjOrgClassDict.forEach(e->ybjOrgClassMap.put(e.getCode(),e.getText()));

		ybjBizAreaDict.add(new DictVO("210400","抚顺市"));
		ybjBizAreaDict.add(new DictVO("210402","新抚区"));
		ybjBizAreaDict.add(new DictVO("210403","东洲区"));
		ybjBizAreaDict.add(new DictVO("210404","望花区"));
		ybjBizAreaDict.add(new DictVO("210405","机关事业"));
		ybjBizAreaDict.add(new DictVO("210411","顺城区"));
		ybjBizAreaDict.add(new DictVO("210421","抚顺县"));
		ybjBizAreaDict.add(new DictVO("210422","新宾满族自治县"));
		ybjBizAreaDict.add(new DictVO("210423","清原满族自治县"));
		ybjBizAreaDict.add(new DictVO("210440","经济开发区"));
		ybjBizAreaDict.add(new DictVO("210499","抚顺市市本级"));
		ybjBizAreaDict.forEach(e->areaTypeMap.put(e.getCode(),e.getText()));
	}

	public static List<DictVO> getAreaTypeDict() {
		return areaTypeDict;
	}

	public static List<DictVO> getRepayTypeDict() {
		return repayTypeDict;
	}

	public static List<DictVO> getBusinessTypeDict() {
		return businessTypeDict;
	}

	public static List<DictVO> getProductStatusDict() {
		return productStatusDict;
	}

	public static List<DictVO> getBusinessStatusDict() {
		return businessStatusDict;
	}

	public static List<DictVO> getFinanceStatusDict() {
		return financeStatusDict;
	}

	public static List<DictVO> getFinanceViewStatusDict() {
		return financeViewStatusDict;
	}

	public static List<DictVO> getRevokeVerifyStatusDict() {
		return revokeVerifyStatusDict;
	}

	public static List<DictVO> getAuthorizeStatusDict() {
		return authorizeStatusDict;
	}

	public static List<DictVO> getPreferntialTypeDict() {
		return preferntialTypeDict;
	}

	public static List<DictVO> getValidityListDict() {
		return validityListDict;
	}

	public static List<DictVO> getShareOrgTypeListDict() {
		return shareOrgTypeListDict;
	}

	public static List<DictVO> getIsActivationDict() {
		return isActivationDict;
	}

	public static List<DictVO> getVerifyFlagDict() {
		return verifyFlagDict;
	}

	public static List<DictVO> getYearFlagDict() {
		return yearFlagDict;
	}

	public static List<DictVO> getOrgTypeDict() {
		return orgTypeDict;
	}

	public static List<DictVO> getValidFlagDict() {
		return validFlagDict;
	}

	public static List<DictVO> getYbjOrgTypeDict() {
		return ybjOrgTypeDict;
	}

	public static List<DictVO> getYbjOrgClassDict() {
		return ybjOrgClassDict;
	}

	public static List<DictVO> getYbjBizAreaDict() {
		return ybjBizAreaDict;
	}

	public static Map<String, String> getAreaTypeMap() {
		return areaTypeMap;
	}

	public static Map<String, String> getRepayTypeMap() {
		return repayTypeMap;
	}

	public static Map<String, String> getBusinessTypeMap() {
		return businessTypeMap;
	}

	public static Map<String, String> getProductStatusMap() {
		return productStatusMap;
	}

	public static Map<String, String> getBusinessStatusMap() {
		return businessStatusMap;
	}

	public static Map<String, String> getFinanceStatusMap() {
		return financeStatusMap;
	}

	public static Map<String, String> getFinanceViewStatusMap() {
		return financeViewStatusMap;
	}

	public static Map<String, String> getRevokeVerifyStatusMap() {
		return revokeVerifyStatusMap;
	}

	public static Map<String, String> getAuthorizeStatusMap() {
		return authorizeStatusMap;
	}

	public static Map<String, String> getPreferntialTypeMap() {
		return preferntialTypeMap;
	}

	public static Map<String, String> getValidityListDictMap() {
		return validityListMap;
	}

	public static Map<String, String> getShareOrgTypeListMap() {
		return shareOrgTypeListMap;
	}

	public static Map<String, String> getIsActivationMap() {
		return isActivationMap;
	}

	public static Map<String, String> getVerifyFlagMap() {
		return verifyFlagMap;
	}

	public static Map<String, String> getYearFlagMap() {
		return yearFlagMap;
	}

	public static Map<String, String> getOrgTypeMap() {
		return orgTypeMap;
	}

	public static Map<String, String> getValidFlagMap() {
		return validFlagMap;
	}

	public static Map<String, String> getYbjOrgTypeMap() {
		return ybjOrgTypeMap;
	}

	public static Map<String, String> getYbjOrgClassMap() {
		return ybjOrgClassMap;
	}

	public static Map<String, String> getYbjBizAreaMap() {
		return ybjBizAreaMap;
	}
}
